#include "GameEngine/Debug.h"

const short Debug::XAxis[]={-1000,0,0, +1000,0,0};
const short Debug::YAxis[]={0,-1000,0, 0,+1000,0};
const short Debug::ZAxis[]={0,0,-1000, 0,0,+1000};

void Debug::drawAxis(){

	::glDisable(GL_TEXTURE_2D);
	::glDisableClientState(GL_TEXTURE_COORD_ARRAY);
	::glDisableClientState(GL_COLOR_ARRAY);
	::glEnableClientState(GL_VERTEX_ARRAY);
	
	::glVertexPointer(3, GL_SHORT, 0, &XAxis);
	::glColor4f(1.0f,0.0f,0.0f,1.0f);	//RED
	::glDrawArrays(GL_LINES,0,2);
	
	::glVertexPointer(3, GL_SHORT, 0, &YAxis);
	::glColor4f(0.0f,1.0f,0.0f,1.0f);	//GREEN
	::glDrawArrays(GL_LINES,0,2);
	
	::glVertexPointer(3, GL_SHORT, 0, &ZAxis);
	::glColor4f(0.0f,0.0f,1.0f,1.0f);	//BLUE
	::glDrawArrays(GL_LINES,0,2);
	
	::glDisableClientState(GL_VERTEX_ARRAY);
}

